package com.cleaningcloud.cld.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 补卡管理对象 cld_replace
 *
 * @author cleaningcloud
 * @date 2024-11-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldReplace extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 补卡ID
     */
    private Long replaceId;

    /**
     * 项目ID
     */
    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 员工ID
     */
    @Excel(name = "员工ID")
    private Long staffId;

    /**
     * 补卡时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "补卡时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date replaceTime;

    // 补卡类型
    private String replaceType;

    /**
     * 补卡说明
     */
    @Excel(name = "补卡说明")
    private String replaceRemark;

    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createId;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 备注是否关闭
     */
    @Excel(name = "备注是否关闭")
    private Long flag;

    /**
     * 审批状态(1待审批2被驳回3已通过)
     */
    @Excel(name = "审批状态(1待审批2被驳回3已通过)")
    private Long approveStatus;

    /**
     * 审批人ID
     */
    @Excel(name = "审批人ID")
    private Long approveId;

    /**
     * 审批人名称
     */
    @Excel(name = "审批人名称")
    private String approveName;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    /**
     * 驳回原因
     */
    @Excel(name = "驳回原因")
    private String resultReason;

}
